@import "./variables.scss";
@import "./mixin.scss";
body {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Source Han Sans CN, Arial, Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
}

ul, ol, li, div, p, h4, h5, span, i {
  padding: 0;
  margin: 0;
}

div, button {
  -webkit-tap-highlight-color:rgba(0, 0, 0, 0);
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
  width: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.main-container, .app-wrapper {
  width: 100%;
}
.app-main {
  min-height: 100%;
}

/* 文字超过宽度度自动截断 */
.text-truncate {
  word-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* 显示两行内容超出部分省略号 */
.two-row-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.el-drawer__header {
  margin-bottom: 0;
  padding: 0;
}

.stage-item-btns {
  text-align: center;
  display: flex;
  justify-content: space-around;
}

.stage-item-handle {
  justify-content: space-around;
}

.button-large {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 27px;
  // height: 54px;
  // line-height: 54px;
  // padding: 0;
  padding: 8px 8px;
  font-size: 14px;
  cursor: pointer;
  &:hover {
    opacity: .9;
  }
}

.button-info {
  // padding: 0 8px;
  // padding: 8px 8px;
  // display: flex;
  // align-items: center;
  justify-content: flex-end;
  .txt {
    flex: 1;
  }
  .icon {
    display: inline-block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-size: 16px 16px !important;
  }
}

// element dialog reset
.el-dialog {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.el-dialog .el-dialog__body {
  flex:1;
  overflow: auto;
}
.el-dialog {
  border-radius: 6px;
  overflow: hidden;
  .el-dialog__header {
    padding: 0;
  }
  .el-dialog__body {
    padding: 0;
  }
}
.el-table__header, .el-table__body {
  width: 100% !important;
}
.rules-list {
  li {
    span {
      color: #333;
      font-weight: bold;
    }
  }
}

@media only screen and (max-width: 767px) {
  .el-dialog {
    width: 66%;
  }
  .button-large {
    border-radius: 20px;
    padding: 5px 8px;
    // height: 40px;
    // line-height: 40px;
  }
  .button-info {
    // padding: 0 8px;
    .icon {
      display: inline-block;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background-size: 12px 12px !important;
    }
  }
}

@media only screen and (min-width: 768px) {
  .el-dialog {
    width: 440px;
    height: 210px;
  }
}

@media screen and (min-width: 1300px) {
  .stage {
    width: 1300px;
  }
  .stage-item-btns {
    justify-content: space-between;
  }
  .stage-item-handle {
    justify-content: space-between;
  }
}

.ele-row {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}